#pragma once
#include <qwidget.h>
#include "SymptomGroup.h"

class SymptomGroup;

class SymptomBuilder
{
public:
	SymptomBuilder(QObject* parent=0);
	SymptomBuilder(QObject* parent, const QString & groupName, const QStringList& elementNames);
	SymptomBuilder* buildGroup(const QString& groupName, const QStringList& elementNames);
	SymptomGroup* addSymptomGroup(const QString& name);
	SymptomGroup* getSymptomGroup(const QString& name);
	QObject* getParent(){return parent;}
	~SymptomBuilder(void);
private:
	QHash<QString,SymptomGroup*> nameSymptomGroupMap;
	QObject* parent;
};

